package com.example.spring.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : zhayh
 * @date : 2021-4-17 17:33
 * @description :
 */

@Controller
public class FilmController {
    @GetMapping("/detail/{type}/{path}")
    public String toDetail(@PathVariable String type, @PathVariable String path) {
        return "detail/" + type + "/" + path;
    }

    // 向用户登录页面跳转
    @GetMapping("/doLogin")
    public String toLoginPage() {
        return "login/login";
    }

}
